package com.hs.srm.admin.modules.orders.entity;

import java.io.Serializable;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import cn.afterturn.easypoi.excel.annotation.Excel;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;

/*
 * 采购订单更改记录表
*/
@Setter
@Getter
@TableName("scm_po_change")
@ToString
public class ProScmPoChangeEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	public ProScmPoChangeEntity() {
		super();
	}

	public static final int SHEN_PI_ZHONG = 1;// 审批中
	public static final int SHEN_PI_TONGGUO = 2;// 审批通过
	public static final int SHEN_PI_BOHUI = -2;// 审批驳回

	/*
	 * 流水id
	*/
	@TableId(value = "id", type = IdType.UUID)
	@TableField("id")
	@Excel(name = "流水id", orderNum = "1")
	private java.lang.String id;

	/*
	 * 更改批次号 （每条订单的每次更改生成一个批次号）
	*/
	@TableField("appr_no")
	@Excel(name = "更改批次号（每条订单的每次更改生成一个批次号）", orderNum = "2")
	private java.lang.String apprNo;

	/*
	 * 采购单编号
	*/
	@TableField("po_no")
	@Excel(name = "采购单编号", orderNum = "3")
	private java.lang.String poNo;

	/*
	 * 行项目编号
	*/
	@TableField("item_no")
	@Excel(name = "行项目编号", orderNum = "4")
	private java.lang.String itemNo;

	/*
	 * 更改前的交期
	*/
	@TableField("apply_date1")
	@Excel(name = "更改前的交期", orderNum = "5")
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private java.util.Date applyDate1;

	/*
	 * 更改后的交期
	*/
	@TableField("apply_date2")
	@Excel(name = "更改后的交期", orderNum = "6")
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private java.util.Date applyDate2;

	/*
	 * 更改前的数量
	*/
	@TableField("amount1")
	@Excel(name = "更改前的数量", orderNum = "7")
	private java.math.BigDecimal amount1;

	/*
	 * 更改后的数量
	*/
	@TableField("amount2")
	@Excel(name = "更改后的数量", orderNum = "8")
	private java.math.BigDecimal amount2;

	/*
	 * 更改前的供应商id
	*/
	@TableField("vendor1")
	@Excel(name = "更改前的供应商id", orderNum = "9")
	private java.lang.String vendor1;

	/*
	 * 更改后的供应商id
	*/
	@TableField("vendor2")
	@Excel(name = "更改后的供应商id", orderNum = "10")
	private java.lang.String vendor2;

	/*
	 * 更改前的价格
	*/
	@TableField("price1")
	@Excel(name = "更改前的价格", orderNum = "11")
	private java.math.BigDecimal price1;

	/*
	 * 更改后的价格
	*/
	@TableField("price2")
	@Excel(name = "更改后的价格", orderNum = "12")
	private java.math.BigDecimal price2;

	/*
	 * 更改人
	*/
	@TableField("deal_person")
	@Excel(name = "更改人", orderNum = "13")
	private java.lang.String dealPerson;

	/*
	 * 更改执行时间
	*/
	@TableField("deal_date")
	@Excel(name = "更改执行时间", orderNum = "14")
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private java.util.Date dealDate;

	/*
	 * 审批状态（0 未审批；1 审批通过；   -1审批不通过）
	*/
	@TableField("approval_status")
	@Excel(name = "审批状态（0未审批；1审批通过；-1审批不通过）", orderNum = "15")
	private java.lang.Integer approvalStatus;

}
